const ex = require('express')

const router = require('./03.demo-router-sub-path')

const app = ex()

// 注册路由
app.use(router)

// 可给路由添加访问前缀
// app.use('/api',router)

const port = 9999

app.listen( port , ()=>{
    console.log(`server start at ${port}`);
})

